package com.web.selenium.element;

import org.openqa.selenium.WebElement;

import com.web.model.element.WebTextField;

public class SeleniumTextField implements WebTextField{
	
	private WebElement element;
	
	public SeleniumTextField(WebElement element){
		
		this.element = element;
	}
	
	public void sendKeys(CharSequence keysToSend) {
		
		element.sendKeys(keysToSend);
	}

	public void submit() {
		
		element.submit();
	}

	public String getValue() {
		
		return element.getAttribute("value");
	}
}
